// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_BP_RECYDED
// * CreateDate    : 2014-06-05 18:30:19
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:19
// * LastChanger   : 2014-06-05 18:30:19
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class ProdBpRecydedEntity : EntityBase
    {
        public ProdBpRecydedTable TableSchema
        {
            get
            {
                return ProdBpRecydedTable.Current;
            }
		}
		
		public ProdBpRecydedEntity()
        {

        }
		
		public ProdBpRecydedEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
			this.RecydedTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECYDED_TIME"]));
			this.RecydedQty = Convert.ToInt32(CommonFunctions.ToObject(dr["RECYDED_QTY"]));
			this.RecydedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECYDED_PERSON"]));
        }
		
		public ProdBpRecydedEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
			this.RecydedTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["RECYDED_TIME"]));
			this.RecydedQty = Convert.ToInt32(CommonFunctions.ToObject(dr["RECYDED_QTY"]));
			this.RecydedPerson = Convert.ToString(CommonFunctions.ToObject(dr["RECYDED_PERSON"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdBpRecydedTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(ProdBpRecydedTable.C_ID)); }
            set { SetData(ProdBpRecydedTable.C_ID, value); }
        }
		
        [DataMember]
        public string BlueprintId
        {
            get { return Convert.ToString(GetData(ProdBpRecydedTable.C_BLUEPRINT_ID)); }
            set { SetData(ProdBpRecydedTable.C_BLUEPRINT_ID, value); }
        }
		
        [DataMember]
        public DateTime RecydedTime
        {
            get { return Convert.ToDateTime(GetData(ProdBpRecydedTable.C_RECYDED_TIME)); }
            set { SetData(ProdBpRecydedTable.C_RECYDED_TIME, value); }
        }
		
        [DataMember]
        public int RecydedQty
        {
            get { return Convert.ToInt32(GetData(ProdBpRecydedTable.C_RECYDED_QTY)); }
            set { SetData(ProdBpRecydedTable.C_RECYDED_QTY, value); }
        }
		
        [DataMember]
        public string RecydedPerson
        {
            get { return Convert.ToString(GetData(ProdBpRecydedTable.C_RECYDED_PERSON)); }
            set { SetData(ProdBpRecydedTable.C_RECYDED_PERSON, value); }
        }
		
		#endregion
	}
	
	
}	

